From 957708c2d1ae25d7375abd5e5e70c3043d64f1f1 Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Thu, 5 Nov 2020 22:31:06 +0000 Subject: [PATCH] xen/arm: traps: Don't panic when receiving an unknown debug trap Even if debug trap are only meant for debugging purpose, it is quite harsh to crash Xen if one of the trap sent by the guest is not handled. So switch from a panic() to a printk(). Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- xen/arch/arm/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 8f40d0e0b6..a36f145e67 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -1410,7 +1410,7 @@ static void do_debug_trap(struct cpu_user_regs *regs, unsigned int code) show_execution_state(regs); break; default: - panic("DOM%d: Unhandled debug trap %#x\n", domid, code); + printk("DOM%d: Unhandled debug trap %#x\n", domid, code); break; } } -- 2.30.2